import 'package:flutter/material.dart';

// SingleChildScrollView

class SingleChildScrollViewRote extends StatefulWidget {
  @override
  _SingleChildScrollViewRoteState createState() =>
      _SingleChildScrollViewRoteState();
}

class _SingleChildScrollViewRoteState extends State<SingleChildScrollViewRote> {
  String str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("SingleChildScrollView"),
      ),
      body: Scrollbar(
        //显示进度
        child: SingleChildScrollView(
          padding: EdgeInsets.all(16.0),
          child: Center(
            child: Column(
                //动态创建一个List<Widget>
                children: str
                    .split("")
                    .map((e) => Text(e, textScaleFactor: 3.0))
                    .toList()),
          ),
        ),
      ),
    );
  }
}
